namespace UniversalAdminSystem.Domian.Core;

/// <summary>
/// 领域事件基类
/// 为所有领域事件提供统一的基础属性
/// </summary>
public abstract class DomainEvent
{
    /// <summary>
    /// 事件ID
    /// </summary>
    public Guid Id { get; } = Guid.NewGuid();
    
    /// <summary>
    /// 事件发生时间
    /// </summary>
    public DateTime OccurredOn { get; } = DateTime.UtcNow;
    
    /// <summary>
    /// 事件类型名称
    /// </summary>
    public string EventType => GetType().Name;
} 